package com.rainbow.distributed.idempotent.lock.example.service;

import java.util.concurrent.TimeUnit;

import org.springframework.stereotype.Component;

import com.rainbow.idempotent.storage.AbstractIdempotentStorage;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
public class IdempotentStorageCustom extends AbstractIdempotentStorage {

	@Override
	public void setValue(String key, String value, long expireTime, TimeUnit timeUnit) {
		log.info("自定义setvalue");
	}

	@Override
	public String getValue(String key) {
		log.info("自定义getvalue");
		return "1";
	}

}
